#include "global_values.h"

/* ADS1299参数 */
ushort PGA = 1;                                       // 放大增益
ushort CHn = 8;                                       // 通道数
QString CH_Mode = "Normal_Input";
QVector<double> CHn_NoiseRMS = QVector<double>(8, 0); // 存储每个通道噪声的均方根值
QVector<double> CHn_NoisePP  = QVector<double>(8, 0); // 存储每个通道噪声的峰峰值
bool RmsPP_Status = false;
QString NoiseRMSPP;                                   // 噪声RMS和PP
uint RmsPP_Count = 0;                                 // 均方值和峰峰值计算点数

/* 绘图参数 */
QString yUnit = "mV";
double yRange = 0;
/* 接受数据缓存 */
QVector<double> time_count = QVector<double>(1024, 0);
QVector<double> CH1_Data   = QVector<double>(1024, 0);
QVector<double> CH2_Data   = QVector<double>(1024, 0);
QVector<double> CH3_Data   = QVector<double>(1024, 0);
QVector<double> CH4_Data   = QVector<double>(1024, 0);
QVector<double> CH5_Data   = QVector<double>(1024, 0);
QVector<double> CH6_Data   = QVector<double>(1024, 0);
QVector<double> CH7_Data   = QVector<double>(1024, 0);
QVector<double> CH8_Data   = QVector<double>(1024, 0);
/* 串口功能数据 */
QMutex mutex;
ushort RecvDataStatus = 0;
